package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * Android日志上传对象 yx_device_log_upload_record
 * 
 * @author lingyu
 * @date 2024-08-01
 */
public class YxDeviceLogUploadRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private String deviceId;

    /** uuid标识区分每一次抓取 */
    @Excel(name = "uuid标识区分每一次抓取")
    private String uuid;

    /** 日志下载路径 */
    @Excel(name = "日志下载路径")
    private String logPath;

    /** 日志上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日志上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setUuid(String uuid) 
    {
        this.uuid = uuid;
    }

    public String getUuid() 
    {
        return uuid;
    }
    public void setLogPath(String logPath) 
    {
        this.logPath = logPath;
    }

    public String getLogPath() 
    {
        return logPath;
    }
    public void setUploadTime(Date uploadTime) 
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime() 
    {
        return uploadTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("uuid", getUuid())
            .append("logPath", getLogPath())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("uploadTime", getUploadTime())
            .toString();
    }
}
